unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls, jpeg;

type
  TForm1 = class(TForm)
    RadioButton1: TRadioButton;
    RadioButton2: TRadioButton;
    RadioButton3: TRadioButton;
    RadioButton4: TRadioButton;
    RadioButton5: TRadioButton;
    Image1: TImage;
    Button1: TButton;
    procedure RadioButton1Click(Sender: TObject);
    procedure RadioButton2Click(Sender: TObject);
    procedure RadioButton3Click(Sender: TObject);
    procedure RadioButton4Click(Sender: TObject);
    procedure RadioButton5Click(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

uses Unit2, Unit3, Unit4, Unit6, Unit5;

{$R *.dfm}

procedure TForm1.RadioButton1Click(Sender: TObject);
begin
Form2.Show;
form3.close;
form4.close;
form6.close;
form5.close;
end;

procedure TForm1.RadioButton2Click(Sender: TObject);
begin
form2.close;
form6.close;
form4.close;
form5.close;
form3.show;
end;

procedure TForm1.RadioButton3Click(Sender: TObject);
begin
form2.close;
form3.close;
form5.close;
form6.close;
form4.show;
end;


procedure TForm1.RadioButton4Click(Sender: TObject);
begin
form2.close;
form3.close;
form4.close;
form6.close;
form5.show;
end;

procedure TForm1.RadioButton5Click(Sender: TObject);
begin
form2.close;
form3.close;
form5.close;
form4.close;
form6.show;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
Form1.close;
end;

end.
